﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ZhiAo.Management.Controls
{
    public class ControlFactory
    {
        public static IControl GetInstance(Control control)
        {
            IControl iControl = null;
            if (control is TextBox)
            {
                iControl = new MyTextBox(control);
            }
            if (control is HiddenField)
            {
                iControl = new MyHiddenField(control);
            }
            return iControl;
        }
    }
}
